package message;

import java.io.Serializable;
import java.util.ArrayList;
/**
 * this class represent the massage "SHARE_BOX"
 * implement the interface message
 * @author ran
 *
 */
public class ShareBox implements Message,Serializable{
	/**
	 * default serialVersionUID
	 */
	private static final long serialVersionUID = 1L;
	ArrayList<String> emails;
	String boxName;
	
	public ShareBox(ArrayList<String> emails, String boxName) {
		this.boxName=boxName;
		this.emails=emails;
	}
	//getters and setters
	public ArrayList<String> getEmails() {
		return emails;
	}

	public void setEmails(ArrayList<String> emails) {
		this.emails = emails;
	}

	public String getBoxName() {
		return boxName;
	}

	public void setBoxName(String boxName) {
		this.boxName = boxName;
	}

	@Override
	public MessageType getType() {
		return MessageType.SHARE_BOX;
	}
}
